package com.showsu.editor.entity.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author: jph
 * @Description:
 * @Date: Created in 15:55 上午 2025/04/10
 * @Modified By:
 */
@Data
@ApiModel(value = "xhs笔记搜索条件返回数据对象")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SearchCriteriaDTO {
    @ApiModelProperty("搜索关键词")
    private String keyword;
    @ApiModelProperty("笔记排序规则")
    private String sortType;
    @ApiModelProperty("筛选笔记类型")
    private String filterNoteType;
    @ApiModelProperty("筛选笔记发布时间")
    private String filterNoteTime;
    @ApiModelProperty("筛选笔记搜索范围")
    private String filterNoteRange;

    public SearchCriteriaDTO(String keyword, String sortType, String filterNoteType, String filterNoteTime, String filterNoteRange) {
        this.keyword=keyword;
        this.sortType = sortType;
        this.filterNoteType = filterNoteType;
        this.filterNoteTime = filterNoteTime;
        this.filterNoteRange = filterNoteRange;
    }
}
